package com.pgybook.db.entity.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PublicWeiboEx {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PublicWeiboEx() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPublicweiboidIsNull() {
            addCriterion("PUBLICWEIBOID is null");
            return (Criteria) this;
        }

        public Criteria andPublicweiboidIsNotNull() {
            addCriterion("PUBLICWEIBOID is not null");
            return (Criteria) this;
        }

        public Criteria andPublicweiboidEqualTo(Long value) {
            addCriterion("PUBLICWEIBOID =", value, "publicweiboid");
            return (Criteria) this;
        }

        public Criteria andPublicweiboidNotEqualTo(Long value) {
            addCriterion("PUBLICWEIBOID <>", value, "publicweiboid");
            return (Criteria) this;
        }

        public Criteria andPublicweiboidGreaterThan(Long value) {
            addCriterion("PUBLICWEIBOID >", value, "publicweiboid");
            return (Criteria) this;
        }

        public Criteria andPublicweiboidGreaterThanOrEqualTo(Long value) {
            addCriterion("PUBLICWEIBOID >=", value, "publicweiboid");
            return (Criteria) this;
        }

        public Criteria andPublicweiboidLessThan(Long value) {
            addCriterion("PUBLICWEIBOID <", value, "publicweiboid");
            return (Criteria) this;
        }

        public Criteria andPublicweiboidLessThanOrEqualTo(Long value) {
            addCriterion("PUBLICWEIBOID <=", value, "publicweiboid");
            return (Criteria) this;
        }

        public Criteria andPublicweiboidIn(List<Long> values) {
            addCriterion("PUBLICWEIBOID in", values, "publicweiboid");
            return (Criteria) this;
        }

        public Criteria andPublicweiboidNotIn(List<Long> values) {
            addCriterion("PUBLICWEIBOID not in", values, "publicweiboid");
            return (Criteria) this;
        }

        public Criteria andPublicweiboidBetween(Long value1, Long value2) {
            addCriterion("PUBLICWEIBOID between", value1, value2, "publicweiboid");
            return (Criteria) this;
        }

        public Criteria andPublicweiboidNotBetween(Long value1, Long value2) {
            addCriterion("PUBLICWEIBOID not between", value1, value2, "publicweiboid");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("CONTENT is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("CONTENT is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("CONTENT =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("CONTENT <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("CONTENT >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("CONTENT >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("CONTENT <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("CONTENT <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("CONTENT like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("CONTENT not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("CONTENT in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("CONTENT not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("CONTENT between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("CONTENT not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andCrttimeIsNull() {
            addCriterion("CRTTIME is null");
            return (Criteria) this;
        }

        public Criteria andCrttimeIsNotNull() {
            addCriterion("CRTTIME is not null");
            return (Criteria) this;
        }

        public Criteria andCrttimeEqualTo(Date value) {
            addCriterion("CRTTIME =", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotEqualTo(Date value) {
            addCriterion("CRTTIME <>", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeGreaterThan(Date value) {
            addCriterion("CRTTIME >", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CRTTIME >=", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeLessThan(Date value) {
            addCriterion("CRTTIME <", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeLessThanOrEqualTo(Date value) {
            addCriterion("CRTTIME <=", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeIn(List<Date> values) {
            addCriterion("CRTTIME in", values, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotIn(List<Date> values) {
            addCriterion("CRTTIME not in", values, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeBetween(Date value1, Date value2) {
            addCriterion("CRTTIME between", value1, value2, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotBetween(Date value1, Date value2) {
            addCriterion("CRTTIME not between", value1, value2, "crttime");
            return (Criteria) this;
        }

        public Criteria andForwardednumIsNull() {
            addCriterion("FORWARDEDNUM is null");
            return (Criteria) this;
        }

        public Criteria andForwardednumIsNotNull() {
            addCriterion("FORWARDEDNUM is not null");
            return (Criteria) this;
        }

        public Criteria andForwardednumEqualTo(Integer value) {
            addCriterion("FORWARDEDNUM =", value, "forwardednum");
            return (Criteria) this;
        }

        public Criteria andForwardednumNotEqualTo(Integer value) {
            addCriterion("FORWARDEDNUM <>", value, "forwardednum");
            return (Criteria) this;
        }

        public Criteria andForwardednumGreaterThan(Integer value) {
            addCriterion("FORWARDEDNUM >", value, "forwardednum");
            return (Criteria) this;
        }

        public Criteria andForwardednumGreaterThanOrEqualTo(Integer value) {
            addCriterion("FORWARDEDNUM >=", value, "forwardednum");
            return (Criteria) this;
        }

        public Criteria andForwardednumLessThan(Integer value) {
            addCriterion("FORWARDEDNUM <", value, "forwardednum");
            return (Criteria) this;
        }

        public Criteria andForwardednumLessThanOrEqualTo(Integer value) {
            addCriterion("FORWARDEDNUM <=", value, "forwardednum");
            return (Criteria) this;
        }

        public Criteria andForwardednumIn(List<Integer> values) {
            addCriterion("FORWARDEDNUM in", values, "forwardednum");
            return (Criteria) this;
        }

        public Criteria andForwardednumNotIn(List<Integer> values) {
            addCriterion("FORWARDEDNUM not in", values, "forwardednum");
            return (Criteria) this;
        }

        public Criteria andForwardednumBetween(Integer value1, Integer value2) {
            addCriterion("FORWARDEDNUM between", value1, value2, "forwardednum");
            return (Criteria) this;
        }

        public Criteria andForwardednumNotBetween(Integer value1, Integer value2) {
            addCriterion("FORWARDEDNUM not between", value1, value2, "forwardednum");
            return (Criteria) this;
        }

        public Criteria andRewardcoinnumIsNull() {
            addCriterion("REWARDCOINNUM is null");
            return (Criteria) this;
        }

        public Criteria andRewardcoinnumIsNotNull() {
            addCriterion("REWARDCOINNUM is not null");
            return (Criteria) this;
        }

        public Criteria andRewardcoinnumEqualTo(Long value) {
            addCriterion("REWARDCOINNUM =", value, "rewardcoinnum");
            return (Criteria) this;
        }

        public Criteria andRewardcoinnumNotEqualTo(Long value) {
            addCriterion("REWARDCOINNUM <>", value, "rewardcoinnum");
            return (Criteria) this;
        }

        public Criteria andRewardcoinnumGreaterThan(Long value) {
            addCriterion("REWARDCOINNUM >", value, "rewardcoinnum");
            return (Criteria) this;
        }

        public Criteria andRewardcoinnumGreaterThanOrEqualTo(Long value) {
            addCriterion("REWARDCOINNUM >=", value, "rewardcoinnum");
            return (Criteria) this;
        }

        public Criteria andRewardcoinnumLessThan(Long value) {
            addCriterion("REWARDCOINNUM <", value, "rewardcoinnum");
            return (Criteria) this;
        }

        public Criteria andRewardcoinnumLessThanOrEqualTo(Long value) {
            addCriterion("REWARDCOINNUM <=", value, "rewardcoinnum");
            return (Criteria) this;
        }

        public Criteria andRewardcoinnumIn(List<Long> values) {
            addCriterion("REWARDCOINNUM in", values, "rewardcoinnum");
            return (Criteria) this;
        }

        public Criteria andRewardcoinnumNotIn(List<Long> values) {
            addCriterion("REWARDCOINNUM not in", values, "rewardcoinnum");
            return (Criteria) this;
        }

        public Criteria andRewardcoinnumBetween(Long value1, Long value2) {
            addCriterion("REWARDCOINNUM between", value1, value2, "rewardcoinnum");
            return (Criteria) this;
        }

        public Criteria andRewardcoinnumNotBetween(Long value1, Long value2) {
            addCriterion("REWARDCOINNUM not between", value1, value2, "rewardcoinnum");
            return (Criteria) this;
        }

        public Criteria andValiddatetimeIsNull() {
            addCriterion("VALIDDATETIME is null");
            return (Criteria) this;
        }

        public Criteria andValiddatetimeIsNotNull() {
            addCriterion("VALIDDATETIME is not null");
            return (Criteria) this;
        }

        public Criteria andValiddatetimeEqualTo(Date value) {
            addCriterion("VALIDDATETIME =", value, "validdatetime");
            return (Criteria) this;
        }

        public Criteria andValiddatetimeNotEqualTo(Date value) {
            addCriterion("VALIDDATETIME <>", value, "validdatetime");
            return (Criteria) this;
        }

        public Criteria andValiddatetimeGreaterThan(Date value) {
            addCriterion("VALIDDATETIME >", value, "validdatetime");
            return (Criteria) this;
        }

        public Criteria andValiddatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("VALIDDATETIME >=", value, "validdatetime");
            return (Criteria) this;
        }

        public Criteria andValiddatetimeLessThan(Date value) {
            addCriterion("VALIDDATETIME <", value, "validdatetime");
            return (Criteria) this;
        }

        public Criteria andValiddatetimeLessThanOrEqualTo(Date value) {
            addCriterion("VALIDDATETIME <=", value, "validdatetime");
            return (Criteria) this;
        }

        public Criteria andValiddatetimeIn(List<Date> values) {
            addCriterion("VALIDDATETIME in", values, "validdatetime");
            return (Criteria) this;
        }

        public Criteria andValiddatetimeNotIn(List<Date> values) {
            addCriterion("VALIDDATETIME not in", values, "validdatetime");
            return (Criteria) this;
        }

        public Criteria andValiddatetimeBetween(Date value1, Date value2) {
            addCriterion("VALIDDATETIME between", value1, value2, "validdatetime");
            return (Criteria) this;
        }

        public Criteria andValiddatetimeNotBetween(Date value1, Date value2) {
            addCriterion("VALIDDATETIME not between", value1, value2, "validdatetime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeIsNull() {
            addCriterion("UPDTIME is null");
            return (Criteria) this;
        }

        public Criteria andUpdtimeIsNotNull() {
            addCriterion("UPDTIME is not null");
            return (Criteria) this;
        }

        public Criteria andUpdtimeEqualTo(Date value) {
            addCriterion("UPDTIME =", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeNotEqualTo(Date value) {
            addCriterion("UPDTIME <>", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeGreaterThan(Date value) {
            addCriterion("UPDTIME >", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UPDTIME >=", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeLessThan(Date value) {
            addCriterion("UPDTIME <", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeLessThanOrEqualTo(Date value) {
            addCriterion("UPDTIME <=", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeIn(List<Date> values) {
            addCriterion("UPDTIME in", values, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeNotIn(List<Date> values) {
            addCriterion("UPDTIME not in", values, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeBetween(Date value1, Date value2) {
            addCriterion("UPDTIME between", value1, value2, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeNotBetween(Date value1, Date value2) {
            addCriterion("UPDTIME not between", value1, value2, "updtime");
            return (Criteria) this;
        }

        public Criteria andRewardcustomernumIsNull() {
            addCriterion("REWARDCUSTOMERNUM is null");
            return (Criteria) this;
        }

        public Criteria andRewardcustomernumIsNotNull() {
            addCriterion("REWARDCUSTOMERNUM is not null");
            return (Criteria) this;
        }

        public Criteria andRewardcustomernumEqualTo(Integer value) {
            addCriterion("REWARDCUSTOMERNUM =", value, "rewardcustomernum");
            return (Criteria) this;
        }

        public Criteria andRewardcustomernumNotEqualTo(Integer value) {
            addCriterion("REWARDCUSTOMERNUM <>", value, "rewardcustomernum");
            return (Criteria) this;
        }

        public Criteria andRewardcustomernumGreaterThan(Integer value) {
            addCriterion("REWARDCUSTOMERNUM >", value, "rewardcustomernum");
            return (Criteria) this;
        }

        public Criteria andRewardcustomernumGreaterThanOrEqualTo(Integer value) {
            addCriterion("REWARDCUSTOMERNUM >=", value, "rewardcustomernum");
            return (Criteria) this;
        }

        public Criteria andRewardcustomernumLessThan(Integer value) {
            addCriterion("REWARDCUSTOMERNUM <", value, "rewardcustomernum");
            return (Criteria) this;
        }

        public Criteria andRewardcustomernumLessThanOrEqualTo(Integer value) {
            addCriterion("REWARDCUSTOMERNUM <=", value, "rewardcustomernum");
            return (Criteria) this;
        }

        public Criteria andRewardcustomernumIn(List<Integer> values) {
            addCriterion("REWARDCUSTOMERNUM in", values, "rewardcustomernum");
            return (Criteria) this;
        }

        public Criteria andRewardcustomernumNotIn(List<Integer> values) {
            addCriterion("REWARDCUSTOMERNUM not in", values, "rewardcustomernum");
            return (Criteria) this;
        }

        public Criteria andRewardcustomernumBetween(Integer value1, Integer value2) {
            addCriterion("REWARDCUSTOMERNUM between", value1, value2, "rewardcustomernum");
            return (Criteria) this;
        }

        public Criteria andRewardcustomernumNotBetween(Integer value1, Integer value2) {
            addCriterion("REWARDCUSTOMERNUM not between", value1, value2, "rewardcustomernum");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}